package GUI;
/**
 * 
 * Class for the teacher user type
 *
 */

public class TeacherClass {
	
	public String tid;
	public String FirstName;
	public String LastName;
	public Integer MaxTeachHours;
	public Integer CountTeachHours;
	public Integer FreeHours;
	public String StudUnit;
	/**
	 * 
	 * @param id = teacher ID
	 * @param fn = FirstName
	 * @param ln = LastNAme
	 * @param maxh = Max hours he/she can teach
	 * @param counth = current num of hours 
	 * @param unit = Academic unit
	 */
	
	public TeacherClass(String id,String fn, String ln, String maxh, String counth,String unit)
	{
		this.tid=id;
		this.FirstName=fn;
		this.LastName=ln;
		this.MaxTeachHours=Integer.parseInt(maxh);
		this.CountTeachHours=Integer.parseInt(counth);
		this.StudUnit=unit;
		this.FreeHours=this.MaxTeachHours-this.CountTeachHours;
	}
	
	/**
	 * 
	 * @param id = teacher ID
	 * @param fn = FirstName
	 * @param ln = LastNAme
	 * @param maxh = Max hours he/she can teach
	 * @param counth = current num of hours 
	 */
	
	public TeacherClass(String id,String fn, String ln, String maxh, String counth)
	{
		this.tid=id;
		this.FirstName=fn;
		this.LastName=ln;
		this.MaxTeachHours=Integer.parseInt(maxh);
		this.CountTeachHours=Integer.parseInt(counth);
		this.StudUnit=null;
		this.FreeHours=this.MaxTeachHours-this.CountTeachHours;
	}

}
